package com.mm.bo;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 管理员登录入参
 * 
 * @ClassName: AdminLoginBo
 * @Description: TODO
 * @author 杨朝湖
 * @date 2020-11-11 02:41:06
 */

@ApiModel(value = "管理员BO", description = "从客户端传入的数据封装实体")
@Data
public class AdminLoginBo {
	@ApiModelProperty(value = "用户名", name = "adminName", example = "15120392740", required = true)
	@NotBlank(message = "用户名不能为空")
	@Length(min = 11, message = "账户名必须为11位")
	@Length(max = 11, message = "账户名必须为11位")
	private String adminName;
	@ApiModelProperty(value = "密码", name = "adminPassword", example = "392740", required = true)
	@NotBlank(message = "密码不能为空")
	@Length(min = 8, message = "密码必须8位")
	@Length(max = 8, message = "密码必须8位")
	private String adminPassword;
}
